package com.cloudfun.campusshare.common.model.dto.dingtalk;

import com.cloudfun.campusshare.common.constant.DingTalkRobotMsgType;
import lombok.Builder;
import lombok.Data;

/**
 * Created by Huqin on 2020/5/13
 */
@Data
@Builder
public class MarkdownContent extends AbsContent {

    private String title;
    private String text;

    public MarkdownContent(String title, String text) {
        super(DingTalkRobotMsgType.MARKDOWN);
        this.title = title;
        this.text = text;
    }

    @Override
    public void appendContent(String str) {
        text += str;
    }

}
